//package com.xxxx.crm.controller;
//
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import java.io.IOException;
//import java.nio.file.Files;
//import java.nio.file.Paths;
//
//@Controller
//public class StaticResourceController {
//
//    @GetMapping("/public")
//    @ResponseBody
//    public byte[] getStaticResource() throws IOException {
//        // 读取静态资源文件的内容
//        String filePath = "src/main/resources/public";
//        return Files.readAllBytes(Paths.get(filePath));
//    }
//}
